<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link rel="shortcut icon" href="images/font/logo.jpg" type="image/x-icon"/>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>
<script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected");
		$(this).addClass("selected");
	});
});	
</script>



</head>

<body style="background:url(images/topbg.gif) repeat-x;">

    <div class="topleft">
    <a href="main.html" target="_parent"><img src="images/logo.png" title="系统首页" /></a>
    </div>
        
    <div class="topright">    
    <ul>
    	<li><span id="nowTime">&nbsp;</span></li>
    </ul>
     
    <div class="user">
    <span>${curuser.account }</span>
    </div>    
    
    </div>
	
	<script type="text/javascript" src="<%=path %>/js/resources/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=path %>/js/resources/moment.js"></script>
	<script type="text/javascript" src="<%=path %>/js/resources/moment-zh-cn.js"></script>
	<script type="text/javascript">
	var path='<%=basePath%>'; 
	
	$(function() { 
		if ('${ empty curuser}' == 'true') {
			window.parent.parent.location.href = path + "/login.jsp";
		}
		beginAutoRefreshNowTimeLabel();
	});
	
	/**
	 * 刷新屏幕当前时间显示
	 */
	function beginAutoRefreshNowTimeLabel() {
		
		var refresh = function() {
			$('#nowTime').text(moment().format('h:mm:ss a'));
		};
		refresh();
		window.setInterval(refresh, 1000);
	};
	
	</script>

</body>
</html>
